import request from '@/utils/request'

// 查询采购记录列表
export function listProcure(query) {
  return request({
    url: '/procurement-system/procure/list',
    method: 'get',
    params: query
  })
}

// 查询采购记录详细
export function getProcure(id) {
  return request({
    url: '/procurement-system/procure/' + id,
    method: 'get'
  })
}

// 新增采购记录
export function addProcure(data) {
  return request({
    url: '/procurement-system/procure',
    method: 'post',
    data: data
  })
}

// 修改采购记录
export function updateProcure(data) {
  return request({
    url: '/procurement-system/procure',
    method: 'put',
    data: data
  })
}

// 删除采购记录
export function delProcure(id) {
  return request({
    url: '/procurement-system/procure/' + id,
    method: 'delete'
  })
}
